"""CreateAdminTable Migration."""

from masoniteorm.migrations import Migration


class CreateAdminTable(Migration):
    def up(self):
        """
        Run the migrations.
        """
        with create("admins") as table:
            table.increments("id")
            table.char("username", 255).unique()
            table.char("password", 255)
            table.char('salt', 255)
            table.timestamps()

    def down(self):
        """
        Revert the migrations.
        """
        # self.schema.drop("admins")
